package com.cn.jdia.tas.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.tas.dao.RecordRemarksMapper;
import com.cn.jdia.tas.model.RecordRemarks;
import com.cn.jdia.tas.service.IRecordRemarksService;

@Service("rcdRemarksService")
public class IRecordRemarksServiceImpl implements IRecordRemarksService{
	
	@Resource
	private RecordRemarksMapper mapper;

	@Override
	public int insertRecordRemark(RecordRemarks record) {
		return this.mapper.insertSelective(record);
	}

	@Override
	public RecordRemarks getRecordRemarks(String employeeid, String date, String type) {
		return this.mapper.selectRecordRemark(employeeid, date, type);
	}

	@Override
	public int updateRecordRemarks(String employeeid, String date, String type, String inputloc, String remark) {
		return this.mapper.updateRecordRemarks(employeeid, date, type, inputloc, remark);
	}

	@Override
	public List<RecordRemarks> get7DaysRemarks(String employeeid, String start, String end) {
		return this.mapper.select7DaysRemarks(employeeid, start, end);
	}
	
}
